package org.wyz.factory;

public class Main {


    public void runCar(String carType) {
        Car car = CarFactory.createCar(carType);
        car.run();
    }


    public static void main(String[] args) {

        new Main().runCar("benz");

    }
}
